-- GENERATED SPELL FOR [Wrath Phantom] --


function spell0_10389(pUnit, Event) --@Screams of the Past,Self--
pUnit:FullCastSpellOnTarget(7074,pUnit)
pUnit:RegisterEvent('Sorts_10389', 5000, 1)
end

function Sorts_10389(pUnit, Event)
local choix_sorts_10389 = math.random(0, 0)
if choix_sorts_10389 == 0 then
pUnit:RegisterEvent('spell0_10389', 1, 1)
end
end

function mob10389_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10389', math.random(1500, 3000), 1)
end

function mob10389_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10389_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10389_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10389, 1, 'mob10389_Action')
RegisterUnitEvent(10389, 2, 'mob10389_Leave')
RegisterUnitEvent(10389, 3, 'mob10389_Kill')
RegisterUnitEvent(10389, 4, 'mob10389_Die')
